from appium import webdriver
from appium.webdriver.common.touch_action import TouchAction

desired_caps = dict()
desired_caps['platformName'] = 'Android'
desired_caps['platformVersion'] = '5.1'
desired_caps['deviceName'] = '192.168.56.101:5555'
desired_caps['appPackage'] = 'com.android.settings'
desired_caps['appActivity'] = '.ChooseLockPattern'

driver = webdriver.Remote('http://192.168.41.103:4723/wd/hub', desired_caps)

# 120 420
# 360 420 

TouchAction(driver).press(x=120, y=420).move_to(x=360, y=420).move_to(x=360, y=660).move_to(x=120, y=660).perform()
